//
//  VCOfFourth.m
//  07--HomeWork07 UITabBarController
//
//  Created by 冀永金 on 16/7/22.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "VCOfFourth.h"
#import "VCOfFifth.h"
@interface VCOfFourth ()

@end

@implementation VCOfFourth

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    [self.view addSubview:button];
    button.backgroundColor = [UIColor redColor];
    [button setTitle:@"随便逛逛" forState:UIControlStateNormal];
    button.frame = CGRectMake(0, 0, 100, 50);
    button.center = self.view.center;
    [button addTarget:self action:@selector(handleLogin:) forControlEvents:UIControlEventTouchUpInside];
    
    
    // Do any additional setup after loading the view.
}
- (void)handleLogin:(UIButton *)button {
    VCOfFifth *fifth = [[VCOfFifth alloc]init];
    [self presentViewController:fifth animated:YES completion:^{
        
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
